//
//  AddRoomApi.m
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/27.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "AddRoomApi.h"

@implementation AddRoomApi{
    NSInteger _cateId;
    NSString *_title;
    NSString *_liveUrl;
}
- (id)initWithCategoryId:(NSInteger)cateId title:(NSString *)title liveUrl:(NSString *)url{
    self = [super init];
    if (self) {
        _cateId = cateId;
        _title = title;
        _liveUrl = url;
    }
    return self;
}

- (NSString *)requestUrl{
    return @"/room/add_room";
}

- (YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

- (YTKRequestSerializerType)requestSerializerType{
    return YTKRequestSerializerTypeJSON;
}

- (id)requestArgument{
    

        return @{
                 @"category_id":[NSNumber numberWithInteger:_cateId],
                 @"title":_title,
                 @"price":_liveUrl
                 };
    
}


@end
